package com.darren.archive.service;

import com.darren.archive.entity.SysDictionary;
import com.darren.framework.service.GenericService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * <pre>
 * *********************************************
 * Copyright DARREN
 * All rights reserved.
 * Description: TODO(description)
 * HISTORY:
 * *********************************************
 *  Version		Date		Author	   		Desc
 *   v1.0       2019-11-21  Darren Zhou    Create
 *
 * *********************************************
 * </pre>
 */
public interface SysDictionaryService extends GenericService<SysDictionary, Long> {

    Page<SysDictionary> findByCategoryName(String categoryName, Pageable pageable);

    List<SysDictionary> findByCategoryCode(String categoryCode);

}